Skip to content

Add Windows/Linux desktop hosting, native trays and secure login - #2

Merged
backrunner merged 25 commits into
mainfrom
feat/windows-linux-desktop
Nov 14, 2026
Merged

backrunner merged 25 commits into
mainfrom
feat/windows-linux-desktop

Conversation

@backrunner

@backrunner backrunner commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Windows and Linux previously depended on Apple-only capture, codecs, input and tray services. This change adds native desktop hosting and controller paths, an independent Rust tray, local IPC, system-account authentication and secure saved credentials. CI produces development archives containing the desktop, daemon and tray, checksums and source revision metadata.

  • H.264/AV1 software video, keyboard/mouse input including committed Chinese text, bidirectional text clipboard, and H.264 negotiation with updated macOS hosts.
  • Windows owner-only named pipes, physical cursor positioning, native tray menus/dialogs and bundled Visual C++ runtime DLLs. Fix log locking, atomic replacement and connection-journal persistence, embed caption icons, and remove duplicate initial daemon status polls that could lose the final response during restart.
  • Linux X11 capture/input, PAM, Secret Service and AppIndicator/GTK tray. The vendored renderer fix selects OpenGL for CPU-only Mesa adapters; acceptance checks actual presented frames.
  • System-account authentication verifies the password through Windows LogonUser or Linux PAM and requires the authenticated SID/UID to match the user running the sharing service. Linux also checks account validity. Credentials travel through the authenticated QUIC exchange; this authorizes the existing desktop without switching users.
  • Complete the desktop saved-credential flow on Windows/Linux: optional successful-login storage, automatic reuse for the same local identity, verified host certificate and authentication method, plus editing/removal in the connection form. Failed/cancelled attempts preserve existing entries; reused credentials cannot overwrite a concurrent edit. OTP and pairing codes are not saved.
  • Store secrets in Windows Credential Manager with local-machine persistence (no Windows profile roaming), Linux Secret Service or macOS Keychain. The Windows writer retains existing target/encoding compatibility and wipes its temporary password buffer. An unavailable store returns an error and has no plaintext fallback; connection/sync files and diagnostics do not contain remembered credentials.
  • Portable tray lifecycle: coalesce duplicate launches into the existing desktop window, keep native prompts nonblocking, dismiss resolved/cancelled/expired requests, and recover an unexpectedly lost daemon. Persisted manual stop wins over watchdogs, delayed background starts and tray restarts; quitting the tray leaves an active remote session running.
  • Add real Explorer/Xfce interaction acceptance with pointer/keyboard input, shell restart recovery, live QUIC video, a ten-minute resource soak, Chinese/light/dark presentation, Linux 2x scaling and a second logical RandR monitor. Window activation and restoration must also produce visible content.
  • Capture native sharing-toggle intent before daemon status updates repaint the menu; repeated actual menu clicks must change both the daemon state and the sharing listener.
  • Run each Linux tray scenario in its own X11/D-Bus session and initialize accessibility before creating Xfce's embedded tray plugin, so earlier GTK probes cannot interfere with control discovery.

Validation

Validated head 5fbfd49331b674d4ca18dae0cfc1cc394b2d3f65. The native desktop matrix, macOS / website / mDNS CI, and Relay CI all passed.

Platform Library regressions IPC regressions Desktop credential-flow tests Full native tray lifecycle
Windows x86_64 300 8 35 15 groups, 600-second live-video soak
Linux x86_64 304 8 35 15 groups, 600-second live-video soak
  • Both platforms exercised native capture, exact Chinese/English keyboard input, pointer input, pinned QUIC video and bidirectional text clipboard. Native OS-account probes checked valid/invalid passwords and matching desktop-owner SID/UID; Linux also checked missing/expired accounts. Credential Manager and Secret Service create/read/update/delete paths passed, including unavailable-store behavior on Linux.
  • Actual Explorer/Xfce icon clicks, native dialogs, default denial, competing answers, cancellation, timeout, shell restart, daemon crash recovery, persistent manual stop, repeated sharing toggles and single-window restoration all passed. Quitting the tray kept the daemon and decoded video alive. The two soaks delivered 6,419 Windows and 6,039 Linux frames while staying within the asserted memory, handle/file-descriptor and thread bounds.
  • Chinese dark tray presentation passed on both platforms (5 groups each). Linux 2x presentation passed 5 groups and logical second-monitor restoration passed 6. Windows extracted-package tray acceptance passed 5 groups; its desktop loaded the bundled Visual C++ runtime and presented content.
  • Downloaded both development archives and verified their SHA-256 files, executable formats, Linux executable permissions, Windows runtime DLLs and BUILD.json. Both packages are version 0.1.12, built from PR merge commit 2b2186a06f1bbd0c991d5ddd5ae658c83a226ca6, whose parents are this head and the current main base. Screenshots and all results.json files were reviewed from the exact run's desktop-evidence-* artifacts.
  • macOS workspace/project checks, Swift tray/cloud-sync tests, website browser tests, mDNS regressions, development packaging and packaged startup checks passed. Local Windows GNU strict Clippy, layout checks, Python syntax and workflow/shell syntax checks passed.

The native workflow provides Removent-windows-x86_64 and Removent-linux-x86_64 artifacts, alongside their evidence archives. Inner archive checksums:

  • Windows ZIP: 4d82854f435b32a55d6a8b194855381d9a73c5fc1e74d6f3b2687404426463b0
  • Linux tar.gz: 8b6278e628096bacaf8025fe32d7244317042470db15d1fb7624cb57ab1f38b9

Validation boundaries

These are development packages for interactive user desktops. The native acceptance uses Windows Explorer and Linux X11/Xfce virtual desktops; physical GPUs, physical monitor hotplug, mixed-DPI transitions, WAN conditions and multi-day uptime remain unverified. Linux hosting requires X11 and an AppIndicator-capable panel. Wayland hosting, system-audio capture, pre-login/secure-desktop control, native Computer Use and automatic package installation remain unavailable.

@backrunner backrunner changed the title Add Windows and Linux desktop hosting, tray and CI artifacts Add Windows/Linux desktop hosting, native trays and secure login Nov 14, 2026
@backrunner
backrunner marked this pull request as ready for review November 14, 2026 10:58
@backrunner
backrunner merged commit e70cb9a into main Nov 14, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant